<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>后台-评论管理</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css" />
  </head>

  <body>
    <div class="layui-card">
      <div class="layui-card-header">评论管理</div>
      <div class="layui-card-body">
        <table class="layui-table">
          <colgroup>
            <col width="10%" />
            <col width="20%" />
            <col width="30%" />
            <col width="20%" />
            <col width="20%" />
          </colgroup>
          <thead>
            <tr>
              <th>ID</th>
              <th>评论人</th>
              <th>评论内容</th>
              <th>评论时间</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <!-- <tr>
              <td>1</td>
              <td>张三</td>
              <td>该犯罪还是属于犯罪,改变不了犯罪的事实,该抓抓,该判判</td>
              <td>2020-8-19</td>
              <td>
                <button
                  data-id="{{val.Id}}"
                  type="button"
                  class="layui-btn layui-btn-xs layui-btn-danger del"
                >
                  删除
                </button>
              </td>
            </tr>
            <tr>
              <td>2</td>
              <td>王五</td>
              <td>
                于千万人之中遇见你所遇见的人，于千万年之中，时间的无涯的荒野里…
              </td>
              <td>2020-8-19</td>
              <td>
                <button
                  data-id="{{val.Id}}"
                  type="button"
                  class="layui-btn layui-btn-xs layui-btn-danger del"
                >
                  删除
                </button>
              </td>
            </tr> -->
          </tbody>
        </table>
      </div>
    </div>
    <!-- 列表模板 start-->
    <script type="text/html" id="table-tpl">
      {{each data}}
      <tr>
        <td>{{$value.id}}</td>
        <td>{{$value.uname}}</td>
        <td>{{$value.content}}</td>
        <td>{{$value.cdate | formatDate}}</td>
        <td>
          <button
            data-id="{{$value.id}}"
            type="button"
            class="layui-btn layui-btn-xs layui-btn-danger del"
          >
            删除
          </button>
        </td>
      </tr>
      {{/each}}
    </script>
    <!-- 列表模板 end -->
    <script src="../assets/lib/jquery.js"></script>
    <script src="../assets/lib/template-web.js"></script>
    <script src="../assets/lib/layui/layui.all.js"></script>
    <script src="../assets/js/comment/comment.js"></script>
  </body>
</html>
